package customer.mysql.synthe.procedure.mysql.service.impl;

import customer.mysql.synthe.procedure.mysql.bean.Product;
import customer.mysql.synthe.procedure.mysql.productdao.ProductMapper;
import customer.mysql.synthe.procedure.mysql.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ldanniel
 */
@Service("productService")
public class ProductServiceImpl implements ProductService {
    private final ProductMapper productMapper;
    @Autowired
    public ProductServiceImpl(ProductMapper productMapper) {
        this.productMapper = productMapper;
    }

    @Override
    public  List<Product>  queryProductInfo(double product) {
        return productMapper.queryProductInfo(product);
    }
    @Override
    public  List<Product>  queryMarketPriceResult() {
        return productMapper.queryMarketPriceResult();
    }
}
